Play Animation with specefic Time [iPhone Animation]
Posted
by Momeks
on Stack Overflow
See other posts from Stack Overflow
or by Momeks
Published on 2010-04-01T14:52:18Z
Indexed on
2010/04/02
14:13 UTC
Read the original article
Hit count: 278
iphone-sdk
Hi , iam trying play animation with xcode,in specefic Time for example after 3 minutes play an animation .. i don't know how coding with NSTimer !
here is my animation codes :
NSArray *myImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"myImage1.png"],
[UIImage imageNamed:@"myImage2.png"],
[UIImage imageNamed:@"myImage3.png"],
[UIImage imageNamed:@"myImage4.gif"], nil];
UIImageView *myAnimatedView = [UIImageView alloc];
[myAnimatedView initWithFrame:[self bounds]];
myAnimatedView.animationImages = myImages;
myAnimatedView.animationDuration = 0.25;
myAnimatedView.animationRepeatCount = 0;
[myAnimatedView startAnimating];
[self addSubview:myAnimatedView]; [myAnimatedView release];
© Stack Overflow or respective owner